python模块-random 随机模块

import random
c = random.randint(0,2)

0,1,2中随机取值